Optimal. Leaf size=27 \[ x \sin (a-c)-\frac{\cos (a-c) \log (\cos (b x+c))}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0175518, antiderivative size = 27, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {4580, 3475, 8} \[ x \sin (a-c)-\frac{\cos (a-c) \log (\cos (b x+c))}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4580
Rule 3475
Rule 8
Rubi steps
\begin{align*} \int \sec (c+b x) \sin (a+b x) \, dx &=\cos (a-c) \int \tan (c+b x) \, dx+\sin (a-c) \int 1 \, dx\\ &=-\frac{\cos (a-c) \log (\cos (c+b x))}{b}+x \sin (a-c)\\ \end{align*}
Mathematica [A] time = 0.142382, size = 27, normalized size = 1. \[ x \sin (a-c)-\frac{\cos (a-c) \log (\cos (b x+c))}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.201, size = 563, normalized size = 20.9 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.25903, size = 99, normalized size = 3.67 \begin{align*} -\frac{2 \, b x \sin \left (-a + c\right ) + \cos \left (-a + c\right ) \log \left (\cos \left (2 \, b x\right )^{2} + 2 \, \cos \left (2 \, b x\right ) \cos \left (2 \, c\right ) + \cos \left (2 \, c\right )^{2} + \sin \left (2 \, b x\right )^{2} - 2 \, \sin \left (2 \, b x\right ) \sin \left (2 \, c\right ) + \sin \left (2 \, c\right )^{2}\right )}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.49795, size = 74, normalized size = 2.74 \begin{align*} -\frac{b x \sin \left (-a + c\right ) + \cos \left (-a + c\right ) \log \left (-\cos \left (b x + c\right )\right )}{b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 169.994, size = 435, normalized size = 16.11 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.16072, size = 213, normalized size = 7.89 \begin{align*} \frac{\frac{4 \,{\left (\tan \left (\frac{1}{2} \, a\right )^{2} \tan \left (\frac{1}{2} \, c\right ) - \tan \left (\frac{1}{2} \, a\right ) \tan \left (\frac{1}{2} \, c\right )^{2} + \tan \left (\frac{1}{2} \, a\right ) - \tan \left (\frac{1}{2} \, c\right )\right )}{\left (b x + c\right )}}{\tan \left (\frac{1}{2} \, a\right )^{2} \tan \left (\frac{1}{2} \, c\right )^{2} + \tan \left (\frac{1}{2} \, a\right )^{2} + \tan \left (\frac{1}{2} \, c\right )^{2} + 1} + \frac{{\left (\tan \left (\frac{1}{2} \, a\right )^{2} \tan \left (\frac{1}{2} \, c\right )^{2} - \tan \left (\frac{1}{2} \, a\right )^{2} + 4 \, \tan \left (\frac{1}{2} \, a\right ) \tan \left (\frac{1}{2} \, c\right ) - \tan \left (\frac{1}{2} \, c\right )^{2} + 1\right )} \log \left (\tan \left (b x + c\right )^{2} + 1\right )}{\tan \left (\frac{1}{2} \, a\right )^{2} \tan \left (\frac{1}{2} \, c\right )^{2} + \tan \left (\frac{1}{2} \, a\right )^{2} + \tan \left (\frac{1}{2} \, c\right )^{2} + 1}}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]